package com.lry.basic.spring.ioc;

import java.lang.annotation.Annotation;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/11/18
 */
public class AnnotationGeneralBeanDefinition extends GeneralBeanDefinition implements AnnotationBeanDefinition{

    private Annotation[] annotations;

    public AnnotationGeneralBeanDefinition(Class<?> annotatedClass){
        this.annotations = annotatedClass.getAnnotations();
        this.setBeanClass(annotatedClass);
    }

    @Override
    public Annotation[] getAnnotations() {
        return annotations;
    }
}
